.artists {
    width: 100%;
    margin: 0 20px;
    overflow-x: hidden;
    width: calc(100vw - 250px)
  }
  /* 导航栏 */
  nav {
    margin-left: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: start;
}

.nav-item {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    background-color: #f0f0f0; /* 默认背景色 */
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    color: #333;
}

/* 悬停效果：文字变色，背景色不变 */
.nav-item:hover {
    color: #9fabf0; /* 悬停时文字颜色 */
}

/* 默认选中状态 */
.nav-item.selected {
    background-color: #9fabf0; /* 选中时的背景色 */
    color: #fff; /* 选中时文字颜色 */
}


/* 字母导航栏 */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
}

.alphabet-item {
    padding: 5px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.alphabet-item:hover {
    color: #9fabf0;
}

/* 可见的歌手卡片列表 */
.artist-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.artists-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.artists-list .artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.artist-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.artist-card p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.artists-list_invisible {
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    justify-content: flex-start; /* 左对齐 */
    gap: 15px 10px; /* 行列间距，增加自然感 */
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
}

/* 歌手名字样式 */
.artist-name {
    display: inline-block;
    width: calc(16.66% - 10px); /* 每行6个，减去间距 */
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 8px;
    border-radius: 4px;
    transition: transform 0.2s;
}

/* 鼠标悬停效果 */
.artist-name:hover {
    transform: scale(1.05);
    color:#9fabf0;
}



/* 适配第二排 4 个卡片 */
@media (max-width: 900px) {
    .artists-list {
        grid-template-columns: repeat(4, 1fr);
    }
}
.artist-card img:hover {
    transform: scale(1.1);
}

.artist-card p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}
